import request from '@/utils/request'

// 查询演员信息列表
export function listnews(query, pageReq) {
  return request({
    url: '/ticket/news/list',
    method: 'post',
    data: query,
    params: pageReq
  })
}

// 查询演员信息详细
export function getnews(id) {
  return request({
    url: '/ticket/news/' + id,
    method: 'get'
  })
}

// 新增演员信息
export function addnews(data) {
  return request({
    url: '/ticket/news',
    method: 'post',
    data: data
  })
}

// /ticket/actor
export function updatenews(data) {
  return request({
    url: '/ticket/news',
    method: 'put',
    data: data
  })
}

// 删除演员信息 /ticket/actor/{id}
export function delnews(id) {
  return request({
    url: '/ticket/news/' + id,
    method: 'delete'
  })
}


